<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

class Filter extends BaseModel
{
    use HasDateTimeFormatter;

    // 类型
    const TYPE_COMBO = 1;//套餐
    const TYPE_LEASE = 2;//租赁
    const TYPE_FOOD = 3;//美食
    const TYPE_ACTIVITY = 4;//活动
    const TYPE_ORDER = 5;//订单

    public $timestamps = false;
    protected $table = 'filter';

    public static function typeMap()
    {
        return [self::TYPE_COMBO => '套餐', self::TYPE_LEASE => '租赁', self::TYPE_FOOD => '美食'];
    }
}
